-- GENERATED SPELL FOR [Hatefury Hellcaller] --


function spell0_4675(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4675', 535, 1)
end

function spell1_4675(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(1094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4675', 17000, 1)
end

function spell2_4675(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(39273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4675', 8000, 1)
end

function Sorts_4675(pUnit, Event)
local choix_sorts_4675 = math.random(0, 2)
if choix_sorts_4675 == 0 then
pUnit:RegisterEvent('spell0_4675', 1, 1)
end
if choix_sorts_4675 == 1 then
pUnit:RegisterEvent('spell1_4675', 1, 1)
end
if choix_sorts_4675 == 2 then
pUnit:RegisterEvent('spell2_4675', 1, 1)
end
end

function mob4675_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4675', math.random(1500, 3000), 1)
end

function mob4675_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4675_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4675_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4675, 1, 'mob4675_Action')
RegisterUnitEvent(4675, 2, 'mob4675_Leave')
RegisterUnitEvent(4675, 3, 'mob4675_Kill')
RegisterUnitEvent(4675, 4, 'mob4675_Die')
